/**
 * ***************************************************************************** Copyright (c) 2005,
 * 2006 Subclipse project and others. All rights reserved. This program and the accompanying
 * materials are made available under the terms of the Eclipse Public License v1.0 which accompanies
 * this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
 *
 * <p>Contributors: Subclipse project committers - initial API and implementation
 * ****************************************************************************
 */
package org.tigris.subversion.subclipse.ui.decorator;

import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.ui.IMarkerResolution;
import org.tigris.subversion.subclipse.ui.Policy;
import org.tigris.subversion.subclipse.ui.actions.EditConflictsAction;

public class ConflictResolution implements IMarkerResolution {

  public ConflictResolution() {
    super();
  }

  public String getLabel() {
    return Policy.bind("SyncAction.conflicts"); // $NON-NLS-1$
  }

  public void run(IMarker marker) {
    new EditConflictsAction((IFile) marker.getResource()).run(null);
  }
}
